//
//  ViewController.m
//  新闻
//
//  Created by 小果 on 16/3/30.
//  Copyright © 2016年 小果. All rights reserved.
//

#import "ViewController.h"
#import "XGRootViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor brownColor];
   
    XGRootViewController *root = [[XGRootViewController alloc] init];
    [self addChildViewController:root];
    root.view.frame = CGRectMake(0, 20, ScreenW, 30);
    
    [self.view addSubview:root.view];
    
}

#pragma mark - 修改状态栏文本的颜色和背景颜色
-(UIStatusBarStyle)preferredStatusBarStyle{
    
    UIView *statusBarView=[[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenW, 20)];
    statusBarView.userInteractionEnabled = YES;
    
    statusBarView.backgroundColor = kNCToolBarBGColor;
    [self.view addSubview:statusBarView];
    
    return UIStatusBarStyleDefault;
}


@end
